<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<body>
	<div class="easyui-panel" title="" style="width: 400px">
		<div style="padding: 10px 60px 20px 60px">
			<form id="ff" method="post" action="<%=basePath%>WebDispatcherServlet?action=${submitAction}">
				<table cellpadding="5">
					<tr>
						<td>玩家名:</td>
						<td><input class="easyui-textbox" type="text"
							name="playerName" data-options="required:true"
							value="${queryEmailInfo.playerName}"></input></td>
					</tr>
					<tr>
						<td>服务器:</td>

						<td><select class="easyui-combobox" name="serverId">
								<c:forEach var="server" items="${servers}">
										<option value="${server.serverId}">${server.serverName}</option>
								</c:forEach>
						</select></td>
					</tr>
					<tr>
						<td>時間</td>
						<td>
							<!-- <input class="easyui-datebox"
							data-options="required:true" name="date"></input> --> 
							<input class="easyui-datetimebox" required style="width: 200px" name="date" value="${queryEmailInfo.date}">
						</td>

					</tr>
				</table>
			</form>
			<div style="text-align: center; padding: 5px">
				<a href="javascript:void(0)" class="easyui-linkbutton"
					onclick="submitForm()">Submit</a> <a href="javascript:void(0)"
					class="easyui-linkbutton" onclick="clearForm()">Clear</a>
			</div>
		</div>
	</div>
</body>
